//
//  GWRedbutton.swift
//  GhostWorld
//
//  Created by Kam on 2018/4/3.
//  Copyright © 2018 LKGood. All rights reserved.
//

import UIKit

class GWRedbutton: UIButton {
  
  private func drawShadow() {
    layer.masksToBounds = false
    layer.shadowColor = UIColor.black.cgColor
    layer.shadowOpacity = 0.4
    layer.shadowOffset = CGSize(width: 0, height: 1)
    layer.shadowRadius = 5
  }
  
  override func awakeFromNib() {
    super.awakeFromNib()
    
    drawShadow()
  }
}
